package com.smart.manager.wiki.entities.body;

import com.smart.common.entities.core.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author xiaxuqiu
 * @date 2023/03/26
 */
public class RDocStrategy {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RStrategyEssay1")
    public static class SearchBody extends BaseSearch {


        @ApiModelProperty("攻略名称")
        private String title;


    }


    @Data
    @ApiModel("RStrategyEssay2")
    public static class EditBody implements Serializable {




        @ApiModelProperty("攻略标题")
        @Length(max = 30, message = "攻略标题 不能超过30个字符")
        @NotBlank(message = " 攻略标题  不能为空")
        private String title;

        @ApiModelProperty("攻略正文")
        @NotBlank(message = " 攻略正文  不能为空")
        private String content;


        @ApiModelProperty("攻略分类标识")
        @NotBlank(message = " 攻略分类  不能为空")
        private String kind;


        @ApiModelProperty("攻略banner图")
        @NotBlank(message = " 攻略banner图  不能为空")
        private String banner;


        @ApiModelProperty("显示排序")
        @NotNull(message = " 显示排序  不能为空")
        private Integer sort;

    }


}
